package InnerClass.InnerClassDemo007;

/**
 * ClassName:Text002
 * Package:InnerClass.InnerClassDemo007
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/26-2:38
 * @Version:v1.0
 */
public class Text002 {

    public static void main(String[] args) {
        //整体可以理解为Swim接口的实现类对象
        //接口多态
        Swim s = new Swim() {

            @Override
            public void swim() {

            }
        };

        new Swim(){

            @Override
            public void swim() {

            }
        }.swim();
    }
}
